package com.party.core.dao.read.photo;

import com.party.common.annotation.DataAuthParam;
import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.photo.PhotoProject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by huangwuming
 * on 2018/5/29/029.
 */
@Repository
public interface PhotoProjectReadDao extends BaseReadDao<PhotoProject> {

    @DataAuthParam(moduleType="MEMBERMGMT" ,field="member_Id",alias="p")
    List<PhotoProject> webListPage(@Param("params") Map<String, Object> params, Page page);

    Map<String, Object> countAnalyzeByDate(@Param("startDate") String startDate,
                                           @Param("endDate") String endDate,
                                           @Param("params") Map<String, Object> params);

    List<PhotoProject> batchByMember(@Param("ids") Set<String> memberIds, Page page);

    List<String> getXzgsPhotoList(@Param(value = "title") String title, @Param(value = "memberId") String xzgsMemberId);
}
